package whf.framework.web.ui;

import whf.framework.web.tag.HtmlTag;

/**
 * @author King
 *
 */
@SuppressWarnings("serial")
public abstract class AbstractUIElement extends HtmlTag implements UIElement {
	private String replaceHolderName;
	
	public UIContainer getParentContainer() {
		return (UIContainer) findAncestorWithClass(this, UIContainer.class);
	}

	public String getHtmlContent() {
		return this.getBodyContent().getString();
	}

	public String getReplaceHolderName() {
		return replaceHolderName;
	}

	public void setReplaceHolderName(String replaceHolderName) {
		this.replaceHolderName = replaceHolderName;
	}
}
